package com.borrowed.book.book.mapper;

import com.borrowed.book.book.domain.SBorrowOrder;
import com.borrowed.book.book.domain.SelectBorrowOrderOutDto;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Repository
@Mapper
public interface SBorrowOrderMapper {
    int insert(SBorrowOrder record);

    int insertSelective(SBorrowOrder record);

    int selectBookRemaining(Long bookId);

    SBorrowOrder selectBorrowOrderById(Long id);

    void updateBorrowOrder(SBorrowOrder record);

    List<SelectBorrowOrderOutDto>  selectBorrowOrderList(Map map);

    void deleteBorrorOrderById(Map map);

    SBorrowOrder selectBorrowOrderByParam(Map map);

    Integer selectBorrowNumber(Map map);

    void deleteBorrorOrderByIds(Map map);
}